home *** CD-ROM | disk | FTP | other *** search
- var
- session : string = '';
- catTitle : string = '';
- targetFile : string = '';
- cgiPath : string = '';
- endVar
-
- procedure main
- session := fieldParm('SessionID');
- if ((session = '') or (session = '*SeSiOnId*'))
- printError;
- return;
- endif
- targetFile := cgiParm('Physical Path');
- catTitle := fieldParm('CatTitle');
- cgiPath := fieldParm('CGIPath');
- replaceInfo;
- getShipping; { created by CatMake }
- getPayment; { created by CatMake }
- activationAndInfo;
- endProc
-
- procedure replaceInfo
- rewriteOutput;
- writeHTTPHeader('text/html');
- fileToMemory(targetFile);
- replaceInMemory('*SeSiOnId*', session);
- replaceInMemory('*CatTitle*', catTitle);
- replaceInMemory('*CGIPath*', cgiPath);
- writeFromMemory;
- endProc
-
- procedure printError
- writeTitle('Script Error');
- writeln('Script executed with wrong parameters');
- endProc
-
- procedure activationAndInfo
- write('<br><b>Additional Payment Information</b><table border>');
- write('<tr><th>Card/Purchase Order # </th><td><input type="TEXT" name="CARDNUM" size=40></td></tr>');
- write('<tr><th>Name on Card</th><td><input type="TEXT" name="NAMEONCARD" size=40></td></tr>');
- write('<tr><th>Expiration date</th><td><input type="TEXT" name="EXPRDATE" size=40></td></tr></table>');
-
- write("<br><b>Comments</b><br>");
- write('<textarea rows=4 cols=40 name="COMMENTS"></TEXTAREA>');
-
- write('<br><input type="SUBMIT" value="Submit"><input type="RESET" value="Reset"></form>');
- endProc
-